#include "LinkedList.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

int main(void)
{
	/* code */
	LinkedList list;
	initLinkedList(&list);
	/*增*/
	insertAt(&list, 0, 10);
	insertAt(&list, 1, 20);
	insertAt(&list, 2, 30);
	printAt(&list);

	/*删*/
	deleteAt(&list, 1);
	printAt(&list);

	/*改*/
	modifyAt(&list, 0, 50);
	printAt(&list);

	/*查*/
	printf("查：%d\n", getElementAt(&list, 0));
	return 0;
}